<template>
  <div class="section section-cover text-c">
    <img
      :src="require('../../../assets/img/yearReport/2020/platform/'+(new Date(reportData.startDate).getFullYear()||'emicon')+'.png')"
      class="img-year"
    />
    <img src="../../../assets/img/yearReport/2020/platform/title.png" class="img-title" />
    <img src="../../../assets/img/yearReport/2020/platform/footer.png" class="img-footer" />
    <div class="org-name" @click="handleStart()">
      <span>{{orgName}}</span>
      <span class="twinkle">>></span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    reportData: {
      type: Object,
      default: function () {
        return {
          joinTime: {},
        }
      },
    },
    orgName: {
      type: String,
      default: '',
    },
  },
  data() {
    return {}
  },
  methods: {
    handleStart() {
      this.$emit('start')
    },
  },
  watch: {},
}
</script>

<style lang="scss">
.section-cover {
  .img-year {
    width: 55vw;
    height: 27.5vw;
    margin: 10% auto 0;
  }
  .img-title {
    width: 83%;
  }
  .img-footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
  }
  .org-name {
    position: absolute;
    right: 28px;
    bottom: 60px;
    color: #ffeaae;
    font-size: 16px;
    animation-fill-mode: forwards;
    text-align: right;
  }
}
</style>